import request from '@/utils/request';

// 服务资源

// 分页查询应用系统IT路径组件服务资源列表
export function queryComponentServerResourceList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/componentResource',
		method: 'post',
		data: data,
	});
}

// 新增系统IT路径组件服务资源
export function addComponentServerResource(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/componentResource/save',
		method: 'post',
		data: data,
	});
}

// 更新系统IT路径组件服务资源
export function updateComponentServerResource(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/componentResource',
		method: 'put',
		data: data,
	});
}

// 删除系统IT路径组件服务资源
export function deleteComponentServerResource(ids: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/componentResource/delete/' + ids,
		method: 'delete',
	});
}
